<!-- 文件列表组件 -->
<ion-list *ngFor="let item of FileListData" (click)="return(item)">

    <ion-item lines="none">
        <ion-avatar slot="start" style="--border-radius: none">
            <img *ngIf="item.fileSuffix==='pdf' || item.fileSuffix==='PDF';else docx"
                 src="assets/application/productArchive/pdf.svg">
            <ng-template #docx>
                <img *ngIf="item.fileSuffix==='docx' || item.fileSuffix==='DOCX';else img"
                     src="assets/application/productArchive/word.svg">
            </ng-template>
            <ng-template #img>
                <img *ngIf="item.fileSuffix==='jpg' || item.fileSuffix==='JPG' || item.fileSuffix==='png' || item.fileSuffix==='PNG' || item.fileSuffix==='svg' || item.fileSuffix==='SVG';else other"
                     src="assets/application/productArchive/Image_File.svg">
            </ng-template>
            <ng-template #other>
                <img src="assets/application/productArchive/file.svg">
            </ng-template>
        </ion-avatar>
        <ion-label>
            <h2>{{item.fileName}}</h2>
            <p>{{item.uploadTime}}</p>
        </ion-label>
    </ion-item>

</ion-list>
